<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css"
	href="../../bootstrap-3.3.7/dist/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="../../bootstrap-3.3.7/dist/css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css" href="../../css/index.css" />
<link rel="stylesheet" type="text/css" href="../../css/background.css" />
<script type="text/javascript"
	src="../../bootstrap-3.3.7/dist/js/jquery.min.js"></script>
<script type="text/javascript"
	src="../../bootstrap-3.3.7/dist/js/bootstrap.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link
	href="../../bootstrap-3.3.7/docs/assets/css/ie10-viewport-bug-workaround.css"
	rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
</head>
<body>
	<div class="container">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<%@include file="../common/header.jsp"%>
			</div>
			<div class="col-md-12 column" style="padding-top: 20px">
				<div class="col-md-3 column">
					<select class="combobox" id="category"
						style="height: 30px; width: 95%; float: left">
						<option value="name" selected="selected">篇名</option>
						<option value="author">作者</option>
						<option value="abstract">摘要</option>
						<option value="keyword">关键词</option>
						<option value="company">作者单位</option>
						<option value="time">发布日期</option>
						<option value="bm">发布部门</option>
						<option value="wh">文号</option>
					</select>
				</div>
				<div class="col-md-6">
					<div class="input-group">
						<input type="text" class="form-control" id="search_content"
							placeholder="请输入要搜索的内容..."> <span class="input-group-btn">
							<button class=" btn btn-warning" type="button"
								onclick="seacrh('')">
								<span class="myfont">检索</span>
							</button>
						</span>
					</div>
				</div>
				<div class="col-md-3" style="margin-top: 10px">
					<div class="input-group">
						<a href="../information/infoadsearch.jsp"><span
							style="font-size: 28;" class="text-primary">高级检索</span></a>
					</div>
				</div>
			</div>
		</div>
		<div class="row clearfix">
			<div class="col-md-3 column" style="padding-bottom: 10px">
				<h4 class="heading">类别</h4>
				<div class="myline"></div>
				<div class="panel panel-default">
					<c:forEach items="${fuku}" var="fuku">
						<div class="panel-heading">
							<h4 class="panel-title">
								<a data-toggle="collapse" data-parent="#accordion"
									href="javascript:void(0)" onclick="seacrh('${fuku.id}')"
									style="text-decoration: none"> ${fuku.name} </a>
							</h4>
						</div>
						<div id="collapseOne" class="panel-collapse collapse in">
							<div class="panel-body">
								<ul class="myul">
									<c:forEach items="${fuku.list}" var="ziku">
										<li><a href="#"><span class="text-primary"
												onclick="kuseacrh('${ziku.id}')" href="javascript:void(0)">${ziku.name}</span></a></li>
									</c:forEach>
								</ul>
							</div>
						</div>
					</c:forEach>
				</div>
			</div>
			<div class="col-md-6 column">
				<div>
					<h4 class="heading">最新国家政策</h4>
					<div class="myline"></div>
					<ul>
						<c:forEach items="${gjlist}" var="gjinfo">
							<c:choose>
								<c:when test="${fn:length(gjinfo.info_name)>30}">
									<li style="padding-top: 8px"><span class="text-primary"><a
											href="javascript:void(0)" data-toggle="popover"
											data-trigger="hover" title="${gjinfo.info_name}"
											onclick='check("${gjinfo.info_id}","${gjinfo.info_keyword}")'>${fn:substring(gjinfo.info_name,0,30)}.....</a></span>
										<span style="float: right">${gjinfo.info_uptime}</span></li>
								</c:when>
								<c:otherwise>
									<li style="padding-top: 8px"><span class="text-primary"><a
											href="javascript:void(0)" data-toggle="popover"
											data-trigger="hover" title="${gjinfo.info_name}"
											onclick='check("${gjinfo.info_id}","${gjinfo.info_keyword}")'>${gjinfo.info_name}</a></span> <span
										style="float: right">${gjinfo.info_uptime}</span></li>
								</c:otherwise>
							</c:choose>
						</c:forEach>
					</ul>
					<a href="../information/getinfosearchview" style="float: right"><span
						class="text-primary">更多</span></a>
				</div>
				<div>
					<h4 class="heading">最新陕西政策</h4>
					<div class="myline"></div>
					<ul>
						<c:forEach items="${sxlist}" var="sxinfo">
							<c:choose>
								<c:when test="${fn:length(sxinfo.info_name)>30}">
									<li style="padding-top: 8px"><span class="text-primary"><a
											href="javascript:void(0)" data-toggle="popover"
											data-trigger="hover" title="${sxinfo.info_name}"
											onclick='check("${sxinfo.info_id}","${sxinfo.info_keyword}")'>${fn:substring(sxinfo.info_name,0,30)}.....</a></span>
										<span style="float: right">${sxinfo.info_uptime}</span></li>
								</c:when>
								<c:otherwise>
									<li style="padding-top: 8px"><span class="text-primary"><a
											href="javascript:void(0)" data-toggle="popover"
											data-trigger="hover" title="${sxinfo.info_name}"
											onclick='check("${sxinfo.info_id}","${sxinfo.info_keyword}")'>${sxinfo.info_name}</a></span> <span
										style="float: right">${sxinfo.info_uptime}</span></li>
								</c:otherwise>
							</c:choose>
						</c:forEach>
					</ul>
					<a href="../information/getinfosearchview" style="float: right"><span
						class="text-primary">更多</span></a>
				</div>
			</div>
			<div class="col-md-3 column">
				<div class="row clearfix">
					<div class="col-md-12 column">
						<h4 class="heading">推荐列表</h4>
						<div class="myline"></div>
						<ul>
							<c:forEach items="${recomlist}" var="info">
								<c:choose>
									<c:when test="${fn:length(info.info_name)>18}">
										<li style="padding-top: 8px"><span class="text-primary"><a
												href="javascript:void(0)" data-toggle="popover"
												data-trigger="hover" title="${info.info_name}"
												onclick='check("${info.info_id}","${info.info_keyword}")'>${fn:substring(info.info_name,0,16)}.....</a></span></li>
									</c:when>
									<c:otherwise>
										<li style="padding-top: 8px"><span class="text-primary"><a
												href="javascript:void(0)" data-toggle="popover"
												data-trigger="hover" title="${info.info_name}"
												onclick='check("${info.info_id}","${info.info_keyword}")'>${info.info_name}</a></span></li>
									</c:otherwise>
								</c:choose>
							</c:forEach>
						</ul>
					</div>
					<div class="col-md-12 column">
						<h4 class="heading">领域专家</h4>
						<div class="myline"></div>
						<ul class="myul">
							<c:forEach items="${listzj}" var="zj">
								<c:choose>
									<c:when test="${empty zj.userzj_picture}">
										<li><img class="img-thumbnail"
											src="../../image/user/default.jpg"
											style="width: 90px; height: 120px"><br> <a
											href="../specialist/getZJDetail?zjid=${zj.userzj_id}"><span
												class="text-primary" style="padding-left: 30px">${zj.userzj_name}</span></a></li>
									</c:when>
									<c:otherwise>
										<li><img class="img-thumbnail"
											src="../../image/user/${zj.userzj_picture}"
											style="width: 90px; height: 120px"><br> <a
											href="../specialist/getZJDetail?zjid=${zj.userzj_id}"><span
												class="text-primary" style="padding-left: 30px">${zj.userzj_name}</span></a></li>
									</c:otherwise>
								</c:choose>
							</c:forEach>
						</ul>
						<a href="../specialist/getSpecialistview" style="float: right"><span
							class="text-primary">更多</span></a>
					</div>
				</div>
			</div>
		</div>

		<div class="row clearfix">
			<div class="col-md-12 column">
				<%@include file="../common/bottom.jsp"%>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
	function seacrh(reczsk_id) {

		var category = $("#category").val();
		var content = $("#search_content").val();

		var url = encodeURI("getSearchInfo?category=" + category + "&content="
				+ content + "&reczsk_id=" + reczsk_id);
		window.location.href = url;
	}
	function kuseacrh(reczsk_id) {
		var category = $("#category").val();
		var content = $("#search_content").val();

		var url = encodeURI("getSearchInfo?category=" + category + "&content="
				+ content + "&reczsk_id=" + reczsk_id);
		window.location.href = url;
	}
	
	function check(id,keyword) {
		var url= encodeURI("../information/getInfoDetial?info_id="+id+"&keyword="+keyword);
		window.open(url);
	}
</script>
</html>